package com.neusoft.mapper;

import com.neusoft.model.Employee;

import java.util.HashMap;
import java.util.List;

public interface EmployeeMapper {
    /**
     * 根据id查询员工对象
     * @param id
     * @return
     */
    public Employee selectEmployeeWithId(Integer id);

    /**
     * 模糊查询
     * @param params
     * @return
     */
    public List<Employee> selectEmployeeByIdLike(HashMap<String,Object> params);

    /**
     * 条件查询
     * @param params
     * @return
     */
    public List<Employee> selectEmployeeChoose(HashMap<String,Object> params);

    /**
     * 条件查询 动态sql标签的使用 <where></where>
     * @param params
     * @return
     */
    public List<Employee> selectEmployeeLike(HashMap<String,Object> params);

    /**
     * foreach
     * @param ids
     * @return
     */
    public List<Employee> selectEmployeeIn(List<Integer> ids);

}
